package software;
import java.util.Iterator;

import softdone.Pos_done;
import softdata.Pla_data;
import softdata.Pla_item;

public class Pos_search extends Pos_done {
	Pla_data postdata=new Pla_data();
	private Iterator iterator;
	public String key=new String();
	public int page=0;
	
	public void Search(){
		Post_Search_List(page,key);
		iterator=Postplates.iterator();
	}
	public void NextItem(){
		if(iterator.hasNext())
		postdata=(Pla_data)iterator.next();
	}
	public void setKey(String s){
		key=s;
	}
	public void setPage(int s){
		page=s;
	}

	public int getSum(){
		//返回总共的搜索帖子数
		return Sum_Posts;
	}
	public int getPage_Sum(){
		// 返回当前页的帖子数
		return Num_Pos_Plates;
	}
	public int getID_User(){
		return postdata.ID_User;
	}
	public int getID_Post(){
		return postdata.ID_Post;
	}
	public String getTitle(){
		return postdata.Title;
	}
	public String getName(){
		return postdata.Nam_User;
	}
	
	
}
